package user;

import cars.Factory;
import operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-11-28
 * Time: 11:30
 */
public class StoreMgr extends User{
    public StoreMgr(String name) {
        super(name);
        this.UserName = "ljk";
        this.UserPwd = "123456";
        this.iOperations = new IOperation[]{
                new ExitOperation(),
                new ModifyVehicle(),
                new AddVehicle(),
                new DelVehicle(),
        };
    }

    @Override
    public int menu() {
        System.out.println("======管理员登录界面=====");
        System.out.println("1.修改汽车");
        System.out.println("2.新增汽车");
        System.out.println("3.删除汽车");
        System.out.println("0.退出系统");
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
